package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2021/3/19
 * Time: 11:18
 * Description:
 */
@Data
@TableName("t_sys_jackpot_amount_log")
@ApiModel(value = "TSysJackpotAmountLogEntity", description = "数据库-奖池金额增入日志表")
public class TSysJackpotAmountLogEntity extends AbstractPageEntity {
    @TableId(value = "id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String id;

    @TableField("jackpot_id")
    @ApiModelProperty(value = "对应奖池id", dataType = "String", notes = "对应奖池id")
    private String jackpotId;

    @TableField("amount")
    @ApiModelProperty(value = "增加金币数量", dataType = "BigDecimal", notes = "增加金币数量")
    private BigDecimal amount;

    @TableField("charge_business_type")
    @ApiModelProperty(value = "收费业务类型码值", dataType = "String", notes = "收费业务类型码值")
    private String chargeBusinessType;

    @TableField("business_id")
    @ApiModelProperty(value = "业务对应id", dataType = "String", notes = "业务对应id")
    private String businessId;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", dataType = "Date", notes = "创建时间")
    private Date createTime;

    @TableField("status")
    @ApiModelProperty(value = "状态 0：成功 1：失败", dataType = "String", notes = "状态 0：成功 1：失败")
    private String status;

    @TableField("rate")
    @ApiModelProperty(value = "失败日志，status为1时写入", dataType = "String", notes = "失败日志，status为1时写入")
    private String log;
}
